/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package deti.es.ukni.rest;

import javax.ws.rs.core.Context;
import javax.ws.rs.core.UriInfo;
import javax.ws.rs.Path;

/**
 * REST Web Service - Band information
 * <p/>
 * This class acts as a router for all resources
 * request related to bands.
 *
 * @author eurico
 */

@Path("/band")
public class BandsResource {
    @Context
    private UriInfo context;

    /** Creates a new instance of BandsResource */
    public BandsResource() {
    }

    /**
     * Resource request for a Band given it's name.
     * 
     * @see BandResourceByName
     */
    @Path("{name}")
    public BandResourceByName getBandResourceByName() {
        return new BandResourceByName();
    }

    /**
     * Resource request for a Band given it's ID.
     * 
     * @see BandResourceById
     */
    @Path("id/{id}")
    public BandResourceByID getBandResourceByID() {
        return new BandResourceByID();
    }

   /**
    * Resource request for a Band Events list given Band ID.
    *
    * @see BandEventResource
    */
    @Path("id/{id}/event")
    public BandEventResource getBandEventResource() {
        return new BandEventResource();
    }

    /**
     * Resource request for a Band Event given Event ID.
     * 
     * @see BandEventResourceByID
     * @return
     */
    @Path("event/{id}")
    public BandEventResourceByID getBandEventResourceByID() {
        return new BandEventResourceByID();
    }


}
